#ifndef __KEY_H_
#define __KEY_H_
#include "board.h"

_Bool KEY1 	 	@PB_IDR:5;
_Bool KEY2 	 	@PB_IDR:4;
_Bool KEY3 	 	@PB_IDR:3;
_Bool KEY4 	 	@PB_IDR:2;
_Bool KEY5 	 	@PB_IDR:1;

#define KEY_PRESS 					0x00
#define KEY_PRESS_NO 				0x01


#define KEY_PRESS_IDLE 				0x00
#define KEY_PRESS_ONCE 				0x01
#define KEY_PRESS_SURE 				0x02
#define KEY_WAIT_HAND_UP 			0x03
#define KEY_WAIT_LONG_HAND_UP	0x04

extern u8 presslongflag;
void keyScan(void);
void keyPortInit(void);
#endif